package a.d.b;

import a.d.z;

import java.util.Comparator;

public class l
  extends e
  implements n
{
  private static final l c = new l();
  private Comparator d = new a_();
  private Comparator e = new c_();
  private Comparator f = new d_();
  public static boolean g;
  
  public static l c()
  {
    return c;
  }
  
  public Object a(double paramDouble1, double paramDouble2)
  {
    return new a.d.w(paramDouble1, paramDouble2);
  }
  
  public Object a(x paramx1, x paramx2)
  {
    return new a.d.w(paramx1.e(), paramx2.e());
  }
  
  public Object a(x paramx1, x paramx2, x paramx3)
  {
    return new a.d.w(paramx1.e() / paramx3.e(), paramx2.e() / paramx3.e());
  }
  
  public x a(Object paramObject)
  {
    return new w(((a.d.w)paramObject).a());
  }
  
  public x b(Object paramObject)
  {
    return new w(((a.d.w)paramObject).b());
  }
  
  public Object e(Object paramObject1, Object paramObject2)
  {
    return new a.d.n((a.d.w)paramObject1, (a.d.w)paramObject2);
  }
  
  public boolean h(Object paramObject1, Object paramObject2)
  {
    a.d.n localn = (a.d.n)paramObject1;
    a.d.w localw = (a.d.w)paramObject2;
    return localn.a(localw);
  }
  
  public Object c(Object paramObject)
  {
    a.d.n localn = (a.d.n)paramObject;
    return localn.d();
  }
  
  public Object d(Object paramObject)
  {
    a.d.n localn = (a.d.n)paramObject;
    return localn.e();
  }
  
  public Object g(Object paramObject1, Object paramObject2)
  {
    a.d.n localn1 = (a.d.n)paramObject1;
    a.d.n localn2 = (a.d.n)paramObject2;
    a.d.c localc1 = new a.d.c(localn1.d(), localn1.e());
    a.d.c localc2 = new a.d.c(localn2.d(), localn2.e());
    return a.d.c.a(localc1, localc2);
  }
  
  public Object f(Object paramObject1, Object paramObject2)
  {
    a.d.n localn1 = (a.d.n)paramObject1;
    a.d.n localn2 = (a.d.n)paramObject2;
    return a.d.n.a(localn1, localn2);
  }
  
  public Comparator f()
  {
    return new b_();
  }
  
  public Object a(Object[] paramArrayOfObject)
  {
    return new c(paramArrayOfObject, false, this);
  }
  
  public boolean j(Object paramObject1, Object paramObject2)
  {
    a locala = (a)paramObject1;
    if (!e.b) {}
    return locala.c(paramObject2) > 0;
  }
  
  public Object[] k(Object paramObject1, Object paramObject2)
  {
    a locala = (a)paramObject1;
    return locala.e(paramObject2);
  }
  
  public Object a(Object paramObject1, Object paramObject2)
  {
    a.d.w localw1 = (a.d.w)paramObject1;
    a.d.w localw2 = (a.d.w)paramObject2;
    return new z(localw2, localw1);
  }
  
  public double c(Object paramObject1, Object paramObject2)
  {
    z localz1 = (z)paramObject1;
    z localz2 = (z)paramObject2;
    return z.d(localz1, localz2);
  }
  
  public Comparator a()
  {
    return this.d;
  }
  
  public Comparator b()
  {
    return this.e;
  }
  
  public Comparator d()
  {
    return this.f;
  }
  
  public int a(Object paramObject1, Object paramObject2, Object paramObject3)
  {
    a.d.w localw1 = (a.d.w)paramObject1;
    a.d.w localw2 = (a.d.w)paramObject2;
    a.d.w localw3 = (a.d.w)paramObject3;
    return a(localw1.a(), localw1.b(), localw2.a(), localw2.b(), localw3.a(), localw3.b());
  }
  
  public int a(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, double paramDouble5, double paramDouble6)
  {
    boolean bool = e.b;
    paramDouble3 -= paramDouble1;
    paramDouble4 -= paramDouble2;
    paramDouble5 -= paramDouble1;
    paramDouble6 -= paramDouble2;
    double d1 = paramDouble5 * paramDouble4 - paramDouble6 * paramDouble3;
    if (!bool) {}
    if (!bool) {}
    return d1 > 0.0D ? -1 : d1 < 0.0D ? 1 : 0;
  }
  
  public int a(Object paramObject1, Object paramObject2, Object paramObject3, Object paramObject4)
  {
    boolean bool = e.b;
    a.d.w localw1 = (a.d.w)paramObject1;
    a.d.w localw2 = (a.d.w)paramObject2;
    a.d.w localw3 = (a.d.w)paramObject3;
    a.d.w localw4 = (a.d.w)paramObject4;
    double d1 = localw1.a();
    double d2 = localw1.b();
    double d3 = localw2.a() - d1;
    double d4 = localw2.b() - d2;
    double d5 = d3 * d3 + d4 * d4;
    double d6 = localw3.a() - d1;
    double d7 = localw3.b() - d2;
    double d8 = d6 * d6 + d7 * d7;
    double d9 = d7 * d5 - d4 * d8;
    double d10 = d3 * d8 - d6 * d5;
    double d11 = d4 * d6 - d3 * d7;
    double d12 = localw4.a() - d1;
    double d13 = localw4.b() - d2;
    double d14 = d12 * d12 + d13 * d13;
    double d15 = d9 * d12 + d10 * d13 + d11 * d14;
    if (!bool) {
      if (d15 != 0.0D)
      {
        if (!bool) {}
        return d15 > 0.0D ? 1 : -1;
      }
    }
    return 0;
  }
  
  static class b_
    implements Comparator
  {
    public int compare(Object paramObject1, Object paramObject2)
    {
      if (!e.b) {
        if (paramObject1 == paramObject2) {
          return 0;
        }
      }
      return a.i.l.a(((a.d.n)paramObject1).g(), ((a.d.n)paramObject2).g());
    }
  }
  
  static class c_
    implements Comparator
  {
    public int compare(Object paramObject1, Object paramObject2)
    {
      boolean bool = e.b;
      if (!bool) {
        if (paramObject1 == paramObject2) {
          return 0;
        }
      }
      a.d.w localw1 = (a.d.w)paramObject1;
      a.d.w localw2 = (a.d.w)paramObject2;
      if (!bool) {
        if (localw1.a() < localw2.a()) {
          return -1;
        }
      }
      if (!bool) {
        if (localw1.a() > localw2.a()) {
          return 1;
        }
      }
      return 0;
    }
  }
  
  static class d_
    implements Comparator
  {
    public int compare(Object paramObject1, Object paramObject2)
    {
      boolean bool = e.b;
      if (!bool) {
        if (paramObject1 == paramObject2) {
          return 0;
        }
      }
      a.d.w localw1 = (a.d.w)paramObject1;
      a.d.w localw2 = (a.d.w)paramObject2;
      if (!bool) {
        if (localw1.b() < localw2.b()) {
          return -1;
        }
      }
      if (!bool) {
        if (localw1.b() > localw2.b()) {
          return 1;
        }
      }
      return 0;
    }
  }
  
  static class a_
    implements Comparator
  {
    public int compare(Object paramObject1, Object paramObject2)
    {
      boolean bool = e.b;
      if (!bool) {
        if (paramObject1 == paramObject2) {
          return 0;
        }
      }
      a.d.w localw1 = (a.d.w)paramObject1;
      a.d.w localw2 = (a.d.w)paramObject2;
      if (!bool) {
        if (localw1.a() < localw2.a()) {
          return -1;
        }
      }
      if (!bool) {
        if (localw1.a() > localw2.a()) {
          return 1;
        }
      }
      if (!bool) {
        if (localw1.b() < localw2.b()) {
          return -1;
        }
      }
      if (!bool) {
        if (localw1.b() > localw2.b()) {
          return 1;
        }
      }
      return 0;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.d.b.l

 * JD-Core Version:    0.7.0.1

 */